  <recentvideos>
{section name=j loop=$featured}
     <video>
          <vkey><![CDATA[ /?vkey={$featured[j].vkey}]]></vkey>
          <thumb>{if $featured[j].provider eq "yt"}http://img.youtube.com/vi/{$featured[j].flvdoname}/{$randthumb}.jpg{else}http://konkan.tv/thumb/{$randthumb}_{$featured[j].VID}.jpg{/if}</thumb>
          <title>{$featured[j].title|escape:'mail'|escape:'htmlall'|escape:'quotes'|strip|truncate:20:"...":true}</title>
	  <description>{if $featured[j].featuredesc ne ""}{$featured[j].featuredesc|escape:'mail'|escape:'htmlall'|escape:"quotes"|strip|truncate:175:"...":true}{else}{$featured[j].description|escape:'mail'|escape:'htmlall'|escape:"quotes"|strip|truncate:75:"...":true}{/if}</description>
	  <addtime>{insert name=time_range assign=rtime field=addtime IDFR=VID id=$featured[j].VID tbl=video}{$rtime}</addtime>
	  <author>{if $featured[j].provider eq "yt"}{$featured[j].contentowner}{else}{insert name=id_to_name assign=uname un=$featured[j].UID}{$uname}{/if}</author>
	  <views>{$featured[j].viewnumber}</views>
	  <commentcount>{insert name=comment_count assign=commentcount vid=$featured[j].VID}{$commentcount}</commentcount>
     </video>
{/section}
  </recentvideos>
